﻿Imports System
Imports System.Collections.ObjectModel
Imports System.ComponentModel
Imports System.IO
Imports System.Xml.Serialization
Imports Microsoft.TeamFoundation.WorkItemTracking.Client
Imports System.Threading

Public Class NodeItem
    Inherits Item
    Implements IItemWrapper(Of Node)

#Region " Values "

    Private m_Value As Node
    Private m_WorkItems As WorkItemCollection

#End Region

#Region " Propertys "

    Public Property Value() As Microsoft.TeamFoundation.WorkItemTracking.Client.Node Implements IItemWrapper(Of Microsoft.TeamFoundation.WorkItemTracking.Client.Node).Value
        Get
            Return m_Value
        End Get
        Set(ByVal value As Microsoft.TeamFoundation.WorkItemTracking.Client.Node)
            If Not m_Value Is value Then
                m_Value = value
                OnPropertyChanged("Value")
            End If
        End Set
    End Property

#End Region

    Public Sub New(ByVal Node As Node)
        MyBase.New(ItemType.Node, Node.Uri.ToString, Node.Name)
        Me.m_Value = Node
    End Sub



End Class
